/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-04-07
 * Time: 17:21
 */
public class Demo2 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            for(int i = 0; i < 10; i++) {
                System.out.println(Thread.currentThread().isInterrupted());
            }
        });
        t.start();
        t.interrupt();
    }
}
